const robotServer=require('../dao/robotServer')

// 对机器人发起消息
exports.newRobotMsg=(req,res)=>{ 
    let {query}=req;
    console.log(query,"query");
    // console.log(body,"body");
    // res.send("机器人消息userId,message")
    robotServer.insertRobotMsg(query,res)
}
exports.getRobmsg=(req,res)=>{ 
    let {body} =req
    // console.log(body,"body");
    // res.send("机器人消息userId,message")
    robotServer.getMsg(body,res)
}  